//
//  YCHud.h
//  nurseGroupPatient
//
//  Created by 董知樾 on 2016/12/19.
//  Copyright © 2016年 董知樾. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger, YCHUDStyle) {
    YCHUDStyleLight,
    YCHUDStyleDark,
    YCHUDStyleCustom
};

typedef NS_ENUM(NSUInteger, YCHUDMaskType) {
    YCHUDMaskTypeNone = 1,  // default mask type, allow user interactions while HUD is displayed
    YCHUDMaskTypeClear,     // don't allow user interactions
    YCHUDMaskTypeBlack,     // don't allow user interactions and dim the UI in the back of the HUD, as on iOS 7 and above
    YCHUDMaskTypeGradient,  // don't allow user interactions and dim the UI with a a-la UIAlertView background gradient, as on iOS 6
    YCHUDMaskTypeCustom     // don't allow user interactions and dim the UI in the back of the HUD with a custom color
};

@interface YCHud : NSObject


/**
 默认样式 黑底 无遮罩
 */

+ (void)show;

+ (void)showWithStatus:(NSString *)status;

+ (void)showWithStatus:(NSString *)status style:(YCHUDStyle)style;

+ (void)showWithStatus:(NSString *)status style:(YCHUDStyle)style maskType:(YCHUDMaskType)maskType;

+ (void)showSuccess;

+ (void)showSuccessWithStatus:(NSString *)status;

+ (void)showError;

+ (void)showErrorWithStatus:(NSString *)status;

+ (void)showInfoWithStatus:(NSString*)status;

+ (void)showInfoWithStatus:(NSString*)status style:(YCHUDStyle)style;

+ (void)showInfoWithStatus:(NSString*)status style:(YCHUDStyle)style maskType:(YCHUDMaskType)maskType;

+ (void)dismiss;

+ (void)dismissWithDelay:(NSTimeInterval)time;

@end
